package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.AdContract;
import com.caigou.bean.cms.param.AdContractParam;
import com.caigou.pojo.AdContractExportList;
import com.caigou.pojo.AdContractInfo;
import com.caigou.pojo.AdContractList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository("AdContractMapper")
public interface AdContractMapper {
    List<AdContractList> loadAdContractList(AdContractParam param);

    List<AdContractExportList> loadAdContractExportList(AdContractParam param);

    void deleteAdContract(@Param("id") Integer id);

    int saveAdContract(AdContract adContract);

    AdContractInfo loadAdContractInfo(@Param("id") Integer id);

    void updateAdContract(AdContract adContract);

    Integer loadAdContractExit(@Param("id") Integer contractId);
}
